package pkg.genericity.DO;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

import pkg.genericity.annot.AutoIncrement;

@SuppressWarnings("serial")
@Entity(name="criteria")
public class Criteria implements Serializable{
	@Id
	@AutoIncrement
	private Integer id;
	private String desc;
	private Integer weight;
	
	
	public Criteria()
	{
		super();
	}
	
	public Criteria(Integer id, String desc, Integer weight) {
		super();
		this.id=id;
		this.desc = desc;
		this.weight = weight;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public Integer getWeight() {
		return weight;
	}
	public void setWeight(Integer weight) {
		this.weight = weight;
	}
	@Override
	public String toString() {
		return "Criteria [id=" + id + ", desc=" + desc + ", weight=" + weight
				+ "]";
	}
}
